package com.mask.im.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.im.business.model.dto.GroupChatShowDTO;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.model.entity.chat.IMGroupChatUserDO;

import java.util.List;

/**
 * 群聊用户关联实体类
 * @author jian
 */
public interface IMGroupChatUserService extends IService<IMGroupChatUserDO> {

    void inserBatch(List<IMGroupChatUserDO> imGroupChatUsers);

    IMGroupChatUserDO getByUserId(Long userId, Long groupChatId);

    RestResponse<String> leaveGroupChat(Integer groupChatId);

    void updateStatus(Integer userInfoId, Integer groupChatId);

    RestResponse<List<GroupChatShowDTO>> notGroupChatFriend(String keyword, Integer groupId);
}

